package com.koron.common.core.business.standard.feign;

import com.koron.bean.base.Response;
import com.koron.bean.standard.deviceClasssify.po.Type;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author twcao
 * @title: SrandardFeignService
 * @projectName GDH_EAM_V2
 * @description: 标准管理
 * @date 2022/2/1611:08
 */
@FeignClient(value = "eam-service-standard", fallbackFactory = FeignFallbackFactory.class)
public interface StandardFeignService {

    @ApiOperation(value = "对分类标准进行过滤")
    @PostMapping("/deviceClassify/filterStandard")
    Response<List<String>> filterStandard(@RequestBody List<String> typeIds, @RequestParam("refType") String refType);

    @PostMapping("/deviceClassify/getRealByIds")
    Response<List<Type>> getRealByIds(@RequestBody List<String> typIds);

}
